package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.RecruitmentDao;
import com.platform.entity.RecruitmentEntity;
import com.platform.service.RecruitmentService;

/**
 * Service实现类
 *
 * @author czj
 * @email 729618941@qq.com
 * @date 2018-10-09 10:22:14
 */
@Service("recruitmentService")
public class RecruitmentServiceImpl implements RecruitmentService {
    @Autowired
    private RecruitmentDao recruitmentDao;

    @Override
    public RecruitmentEntity queryObject(Integer id) {
        return recruitmentDao.queryObject(id);
    }

    @Override
    public List<RecruitmentEntity> queryList(Map<String, Object> map) {
        return recruitmentDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return recruitmentDao.queryTotal(map);
    }

    @Override
    public int save(RecruitmentEntity recruitment) {
        return recruitmentDao.save(recruitment);
    }

    @Override
    public int update(RecruitmentEntity recruitment) {
        return recruitmentDao.update(recruitment);
    }

    @Override
    public int delete(Integer id) {
        return recruitmentDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[]ids) {
        return recruitmentDao.deleteBatch(ids);
    }
}
